home *** CD-ROM | disk | FTP | other *** search
Wrap
2 deffns(x)=int(x/13):deffnv(x)=x-13*int(x/13):ns=13:nc=52:printchr$(142) 3 jj=-1:dims(nc),x(10),y(10) :fori=0tonc-1:s(i)=i:next 4 dima$,jj,te,i,j,x,y,va,t,su,t,j%,f,fc,fr,j9,ba,ca,k,nc,ns,su$,ch$,is,m5,pu$,pf 6 deffns(x)=int(x/13):deffnv(x)=x-13*int(x/13):ns=13:nc=52 10 goto401 20 gosub62 21 fori=1to12:ifa$=mid$(ch$,i,1)thenreturn 22 next: goto20 26 t=87:a$="251331421502421502" 27 pokef+6,96:pokef+24,15 28 fori=1to18step3 29 pokef+1,val(mid$(a$,i,2)):pokef+4,33 30 forj=1tot*val(mid$(a$,i+2,1)):next 31 pokef+4,0:next:x=5:y=15:gosub66:ifpf=1then return 32 print"[156][176][192][192][192][192][192][192][192][201][157][157][157][157][157][157][157][157][157][221]you win[221][157][157][157][157][157][157][157][157][157][202][192][192][192][192][192][192][192][203]" 33 fori=1to900:next 34 x=9:y=09:gosub66 35 print"[213][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][201]":y=10:gosub66 36 print"[221] [221]":y=11:gosub66 37 print "[221] 1. the challenge [221]":y=12:gosub66 38 print "[221] 2. regular game [221]":y=13:gosub66 39 print "[221] 3. quit to loadstar [221]":y=14:gosub66 40 print "[221] [221]":y=15:gosub66 41 print "[202][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][203]" 42 gosub62:ifa$<"1"ora$>"3"then42 43 return 48 t=0:t=48-c(10):x=13:y=02:gosub66 49 print"[156][213][192][192][192][192][192][192][192][192][192][192][192][192][201][157][157][157][157][157][157][157][157][157][157][157][157][157][157][221] cards left [221][157][157][157][157][157][157][157][157][157][157][157][157][157][157][221]"; 50 print" [221][157][157][157][157][157][157][157][157][157][157][157][157][157][157][202][192][192][192][192][192][192][192][192][192][192][192][192][203][145][157][157][157][157][157][157][157][157][157]";t:goto33 58 x=10:y=24:gosub66:print" please press a key [145][145][145]" 62 geta$:ifa$=""then70:return 66 poke211,x:poke214,y:sys58732:return 70 ifjj=nc-2thenjj=-1 71 jj=jj+1:j%=jj+int(rnd(0)*(nc-jj)):temp=s(jj):s(jj)=s(j%):s(j%)=temp:goto62 111 nc=52:dimva$(13),c(12),b(11,52),vb$(13):f=54272:fori=ftof+78:pokei,0:next 115 fori=0to3:reads$(i):readco$(i):next 119 fori=0to12:readva$(i):next 120 ch$="123456789fhq" 121 fori=1to10:readx(i),y(i):next 123 data"[216]","[144]","[218]","","[211]","","[193]","[144]",a,2,3,4,5,6,7,8,9,"&",j,q,k 125 data0,5,0,13,20,0,27,0,34,0,20,8,34,8,20,16,34,16,27,16 126 fori=0to3:reads1$(i):next:fori=0to12:readvb$(i):next 127 data"[162]","#","[223]","[161]","[204]","[219]","[217]","[215]","[214]","[212]","[210]","[209]","[208]","'","[207]","[206]","[205]" 129 return 134 fori=3to10:b(i,1)=s(41+i):c(i)=1: gosub900:next:gosub167 138 fori=3to10:iffnv(b(i,1))<>12 then140 139 k=k+1:b(1,k)=b(i,1):c(i)=0:gosub163:gosub900 140 next:forj=1to300 141 fc=0: fori=3to10:ifc(i)<>0then 145 142 iffnv( s(43-fc))=12then144 143 b(i,1)=s(43-fc):c(i)=1:gosub900:fc=fc+1:goto145 144 k=k+1:b(1,k)=s(43-fc):fc=fc+1:goto143 145 next:c(1)=44:fori=0to43-fc:k=k+1:b(1,k)=s(i):next:c(2)=0 146 return 150 ifjj=nc-2thenreturn 155 jj=jj+1:j%=jj+int(rnd(0)*(nc-jj)):temp=s(jj):s(jj)=s(j%):s(j%)=temp 157 ifjj<>nc-2then155 159 return 163 x=x(1):y=y(1): gosub66 164 print" [157][157][157][157][157][157] [157][157][157][157][157][157] [157][157][157][157][157][157] "; 165 print"[157][157][157][157][157][157] [157][157][157][157][157][157] [157][157][157][157][157][157] " 166 foris=1to70:next 167 x=x(1):y=y(1): gosub66 168 print"[176][192][192][192][192][174][157][157][157][157][157][157][221][166][164][164][167][255][157][157][157][157][157][157][221][170][172][172][171][255][157][157][157][157][157][157][221][170][172][172][171][255]"; 169 print"[157][157][157][157][157][157][221][170][172][172][171][255][157][157][157][157][157][157][221][168][165][165][169][255][157][157][157][157][157][157][173][196][196][196][196][189][145][145][145][145][145][157][157][157][157][157]" :return 170 i=2:x(2)=13:gosub900:forj=1to600:next:m5=c(2):c(2)=0:gosub200:x(2)=0:c(2)=m5 174 x(2)=0:ifc(2)=0then900:return 177 i=2: ifc(2)=1thengosub900:hm=1:return 178 ifc(2)>=3then186 182 x(2)=3*c(2)-3:gosub900:x(2)=0:hm=c(2):return 186 forj=2to0step-1:x=3*j:y=y(2):gosub66 188 print" [157][157][157][157][157][157] [157][157][157][157][157][157] [157][157][157][157][157][157] "; 190 print"[157][157][157][157][157][157] [157][157][157][157][157][157] [157][157][157][157][157][157] ":next:m5=c(2) 191 ifc(2)=3then193 192 x(2)=0:c(2)=m5-2:gosub200:goto194 193 x(2)=0:c(2)=m5-2:gosub900 194 forj=1to 2:x(2)=3*j:c(2)=m5-2+j:gosub900:next:c(2)=m5:x(2)=0:hm=3:return 200 ca=b(i,c(i)):su=fns(ca):va=fnv(ca):x=x(i):y=y(i):gosub66 204 pokef+24,6:pokef+5,128:pokef+4,129:fort=1to50:next:pokef+4,128:pokef+5,0 206 pokef+24,0:pokef+24,15:pokef+4,129:pokef+4,128 208 ifc(i)<>0then220 216 print" [157][157][157][157][157][157] [157][157][157][157][157][157] [157][157][157][157][157][157] "; 218 print"[157][157][157][157][157][157] [157][157][157][157][157][157] [157][157][157][157][157][157] ";:return 220 print"[176][192][192][192][192][174][157][157][157][157][157][157][221] [255][157][157][157][157][157][157][221] [166][167] [255][157][157][157][157][157][157][221] [170][171] [255]"; 222 print"[157][157][157][157][157][157][221] [168][169] [255][157][157][157][157][157][157][221] [255][157][157][157][157][157][157][173][196][196][196][196][189] 224 [141]66 227 [153]"";co$(su);va$(va);"cmd";s$(su);"";s1$(su);"cmd";vb$(va):[142] 235 x[178]3[172](hm[171]1):y[178]y(2):[141]66 239 [153]" cmdcmdcmdcmdcmdcmd cmdcmdcmdcmdcmdcmd cmdcmdcmdcmdcmdcmd "; 243 [153]"cmdcmdcmdcmdcmdcmd cmdcmdcmdcmdcmdcmd cmdcmdcmdcmdcmdcmd ":[139]c(2)[178]0[167][141]200:[142] 245 x(2)[178]x[171]3:[141]900 247 [129]j[178]1[164]300:[130]: [142] 304 [151]53280,1:[151]53281,1: [153]"load <<< double or quits >>> " 306 [153]" one card is dealt to each of 8 piles " 308 [153]"with the last being the foundation, f." 310 [153]"any kings dealt are replaced and put on 314 print"the bottom of the deck (1). 316 [153]:[153]" the object is to build the entire deck,"; 318 [153]"other than the kings, on f in the con- 320 print"tinuous sequence a,2,4,8,3,6,q,j,9,5,10,"; 322 print"7,a etc. (this is a doubling sequence 324 [153]"with 13 subtracted when the total ex- 326 print"ceeds 13.) suits are ignored. 328 [153]:[153]" cards are turned one at a time from 1 330 print"and played to 2. empty spaces [3-9] will"; 332 print"be filled from 2 (1 if 2 has no cards)." 334 print"kings are dead cards, and thus any play-"; 336 print"ed to [3-9] will remain there. the top " 338 print"card of [2-9] is available for play. the"; 339 print"challenge allows one redeal and the 340 [153]"regular game allows two. ":[139]j9[178]1[167]342 341 [153]:[153]" a moment, pleaseonon";:j9[178]1:[141]150 342 [153]"onon":[141]58 343 [142] 360 [151]53280,1:[151]53281,1:[153]"load ortantantantantantantantantantanright$ 361 print" [221] double [221] 362 [153]" (NULL) or quits (NULL) 363 print" [202][192][192][192][192][192][192][192][192][192][192][203] 364 [153]"stop h-help 365 print" q-quit 3 4 5 366 [153]" 1 367 print" 6 7 368 [153]" 2 371 print" 8 f 9";:return 372 fori=214to242:pokei,peek(i)or128:next 401 poke53272,31:poke198,0:gosub304:gosub111: 402 print"[147]": gosub34:ifa$="3"then1000 403 pu$=a$: pf=1:gosub26:pf=0:a$=pu$ 404 re=val(a$):j9=1:jj=-1:fr=0 406 k=0:jj=-1:gosub360:gosub134 408 x=8 :y=9:gosub66:print"[144]redeals[156]"re 420 ba=fnv(b(10,1))+1: goto588 424 x=0:y=22:gosub66:print" play ? [157][157]" 426 gosub20:a$="":ifc(i)=0and(i>1andi<10)then430 427 ifi=1andc(1)=0then540 428 fr=i:onigoto460,580,580,580,580,580,580,580,580,580,440,450 430 x=0:y=22:gosub66:print"illegal ":forj=1to700:next:goto424 440 sys886:gosub304:sys907:goto424 450 gosub48 452 ifa$="3"then1000 454 re=val(a$):goto404 460 c(2)=c(2)+1:b(2,c(2))=b(1,c(1)):c(1)=c(1)-1:ifc(1)=0then470 461 ifc(1)=1thengosub630:goto464 462 gosub163 464 gosub170:ifc(1)=0then474 466 goto424 470 i=1:gosub200:goto464 474 ifre=0then568 475 x=0:y=24:gosub66 478 print"[156]enter 1 for a redeal[145][145]" 492 goto424 540 x=0:y=24:gosub66 544 print" "; 546 ifre=0then568 550 x=c(2):fori=1tox:b(1,x)=b(2,i):x=x-1:next:c(1)=c(2):c(2)=0 552 forj=2to0step-1:x=3*j:y=y(2):gosub66 553 print" [157][157][157][157][157][157] [157][157][157][157][157][157] [157][157][157][157][157][157] "; 554 print"[157][157][157][157][157][157] [157][157][157][157][157][157] [157][157][157][157][157][157] ":next:gosub163 564 re=re-1:x=8:y= 9:gosub66:print"[144]redeals[156]";re:goto424 568 x=0:y=23:gosub66 572 print"[156]use q to end game[145][145]" 574 goto424 580 fc=b(fr,c(fr)):iffnv(fc)+1<>bathen430 582 c(10)=c(10)+1:b(10,c(10))=b(fr,c(fr)):c(fr)=c(fr)-1 584 iffr=2thengosub235:i=10:gosub200:forj=1to300:next: gosub174:goto587 585 i=fr:gosub900 586 i=10:gosub200 587 ifc(10)=48then598 588 ba=ba*2:ifba>13thenba=ba-13 592 x=27:y=15:gosub66:print"[156]next-";va$(ba-1);" [144]":goto600 598 gosub26:goto452 600 iffr<3then424 602 ifc(1)=0andc(2)=0then424 604 ifc(2)=0then616 608 b(fr,1)=b(2,c(2)):c(2)=c(2)-1:i=2:gosub235:c(fr)=1:i=fr:gosub900:gosub174 610 goto424 616 b(fr,1)=b(1,c(1)):c(1)=c(1)-1:c(fr)=1 618 ifc(1)=0then624 620 iffr=2thengosub174:goto424 622 i=fr:gosub900:goto424 624 i=1:gosub200:goto622 630 x=x(1):y=y(1): gosub66 634 print" [157][157][157][157][157][157] [157][157][157][157][157][157] [157][157][157][157][157][157] "; 638 print"[157][157][157][157][157][157] [157][157][157][157][157][157] [157][157][157][157][157][157] " 642 foris=1to70:next 646 x=x(1):y=y(1): gosub66 650 print"[176][192][192][192][192][201][157][157][157][157][157][157][221][166][164][164][167][221][157][157][157][157][157][157][221][170][172][172][171][221][157][157][157][157][157][157][221][170][172][172][171][221]"; 654 print"[157][157][157][157][157][157][221][170][172][172][171][221][157][157][157][157][157][157][221][168][165][165][169][221][157][157][157][157][157][157][202][192][192][192][192][203][145][145][145][145][145][157][157][157][157][157]" :return 900 ca=b(i,c(i)):su=fns(ca):va=fnv(ca):x=x(i):y=y(i):gosub66 904 pokef+24,6:pokef+5,128:pokef+4,129:fort=1to50:next:pokef+4,128:pokef+5,0 906 pokef+24,0:pokef+24,15:pokef+4,129:pokef+4,128 908 ifc(i)<>0then920 916 print" [157][157][157][157][157][157] [157][157][157][157][157][157] [157][157][157][157][157][157] "; 918 print"[157][157][157][157][157][157] [157][157][157][157][157][157] [157][157][157][157][157][157] ";:return 920 print"[176][192][192][192][192][201][157][157][157][157][157][157][221] [221][157][157][157][157][157][157][221] [166][167] [221][157][157][157][157][157][157][221] [170][171] [221]"; 922 print"[157][157][157][157][157][157][221] [168][169] [221][157][157][157][157][157][157][221] [221][157][157][157][157][157][157][202][192][192][192][192][203] 924 [141]66 927 [153]"";co$(su);va$(va);"cmd";s$(su);"";s1$(su);"cmd";vb$(va):[142] 1000 [159]15,8,15,"r0:hello connect=hello connect":[132]15,er:[160]15 1010 [139]er[179][177]63[167][128] 1020 [151]53281,0:[151]53280,0:[153]"loadstopload"[199](34)"hello connect"[199](34)",8" 1030 [153]"run" 1040 [151]631,13:[151]632,13:[151]198,2:[128] 9999 [128] 10000 [159]15,8,15,"so:double or quits":[160]15:[148]"double or quits",8:[128]